from common.get_by_local import GetByLocal
class LoginPage(object):
    def __init__(self,driver):
        self.gl = GetByLocal(driver)
    # 获取注册账号按钮元素信息
    def get_register_element(self):
        return self.gl.get_element('go_register','LoginElement')
    # 获取注册用户名元素信息
    def get_register_username_element(self):
        return self.gl.get_element('register_username','RegisterElement')
    # 获取点击获取验证码元素信息
    def get_register_obtain_code_element(self):
        return self.gl.get_element('obtain_code','RegisterElement')
    # 获取注册验证码元素信息
    def get_register_code_element(self):
        return self.gl.get_element('register_code','RegisterElement')
    # 获取注册密码元素信息
    def get_register_password_element(self):
        return self.gl.get_element('register_password','RegisterElement')
    # 获取注册确认密码元素信息
    def get_register_confirm_password_element(self):
        return self.gl.get_element('register_confirm_password','RegisterElement')
    # 获取注册按钮元素信息
    def get_register_button_element(self):
        return self.gl.get_element('register_button','RegisterElement')
    # 获取注册错误提示信息
    def get_error_text_element(self):
        return self.gl.get_element('register_error_content','RegisterElement')
    # 获取用户协议勾选框元素信息
    def get_register_error_content(self):
        return self.gl.get_element('registration_agreement','RegisterElement')
    # 获取忘记密码账号输入框元素信息
    def get_forget_username_element(self):
        return self.get_by_local.get_element('forget_username')
    # 获取登录用户名元素信息
    def get_user_element(self):
        return self.get_by_local.get_element('username')
    # 获取登录密码元素信息
    def get_password_element(self):
        return self.get_by_local.get_element('password')
    # 获取登录按钮元素信息
    def get_button_element(self):
        return self.get_by_local.get_element('login_button')
    # 获取忘记密码元素信息
    def get_forget_element(self):
        return self.get_by_local.get_element('forget_element')
